/*Ingredients*/
/*PIC : Archie Anugrah. Project A.1*/

#ifndef INGREDIENT_H_
#define INGREDIENT_H_

#include <string>

//Include sstream for display func - Archie
#include <sstream>

using namespace std;


struct Ingredient {
public:
	// constructors - Archie
	Ingredient (int new_ingredient_id, int new_recipe_id, float new_amt, string new_units, string new_name) 
	{
		ingredient_id=new_ingredient_id;
		recipe_id = new_recipe_id;
		amt = new_amt;
		units = new_units;
		name = new_name;
	}

	// utility functions 

	//display ingredient data - Archie
	string display() 
	{
		stringstream tempoutput; //make temporary stringstream to return the concatted string
		tempoutput << ingredient_id << " , " <<recipe_id<< " , " <<amt<< " , " <<units<< " , " <<name;
		return tempoutput.str();
	}

private:
	//constants  

	// private data
	int ingredient_id;
	int recipe_id;
	float amt;
	string units;
	string name;
};


#endif //INGREDIENT_H_
